#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/4/27 下午6:04
# @Author  : zhangzhen
# @Site    : 
# @File    : codecs_test.py
# @Software: PyCharm
from __future__ import print_function


import codecs
text = codecs.open('./doc/01.txt', 'r', 'utf-8', 'ignore').read()
print( type(text) )  # in py2 is unicode, py3 is str